package user;

import Play.*;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: dell
 * Date: 2023-11-29
 * Time: 17:49
 */
public class AdminUser extends user{
    public AdminUser(String name) {
        super(name);
        this.features=new Feature[]{
                new exit(),
                new findbook(),
                new addplay(),
                new delbook(),
                new showbook(),
        };
    }
    public  int menu(){
        System.out.println(" AdminUser的菜单");
        System.out.println("**********************************");
        System.out.println("欢迎来到图书小练习 !"+this.name);
        System.out.println("1.findbook");
        System.out.println("2.addplay");
        System.out.println("3.deibook");
        System.out.println("4.showbook");
        System.out.println("0.exit");
        System.out.println("**********************************");
        System.out.println("please 操作");
        Scanner scanner=new Scanner(System.in);
        int a= scanner.nextInt();
        return a;
    }
}